package com.maoyan.quickdevelop.system.service;

import com.maoyan.quickdevelop.common.core.domain.DqInterview;
import com.maoyan.quickdevelop.common.core.domain.postprocessor.DqInterviewPostProcesser;

import java.util.List;

/**
 * @author 猫颜
 * @date 2021/5/27 22:26
 * 文章
 */

public interface IDqInterviewService {

    /** 查询 **/
    /**
     * 统一的查询方法
     *
     * @param dqInterview
     * @return
     */
    public List<DqInterview> selectDqInterview(int pageNum, int pageSize, DqInterview dqInterview);

    /**
     * 通过ID查询
     *
     * @param dqInterviewId
     * @return
     */
    public DqInterview selectDqInterviewById(Long dqInterviewId);

    /**
     * 通过标题查询
     *
     * @param title
     * @return
     */
    public DqInterview selectDqInterviewByTitle(String title);

    /**
     * 通过作者ID查询
     *
     * @param authorId
     * @return
     */
    public List<DqInterview> selectDqInterviewsByAuthorId(int pageNum, int pageSize, Long authorId);

    /**
     * 通过作者用户名查询
     *
     * @param authorUsername
     * @return
     */
    public List<DqInterview> selectDqInterviewsByAuthorUsername(int pageNum, int pageSize, String authorUsername);

    /**
     * 增加
     **/
    public int insertDqInterview(DqInterview dqInterview);

    /**
     * 修改
     **/
    public int updateDqInterview(DqInterview dqInterview);

    /**
     * 删除
     **/
    public int deleteDqInterviewById(Long articleId);
    /*********************************************/


    /**
     * ==========================================增强版==============================================
     **/
    public List<DqInterviewPostProcesser> selectDqInterviewPostProcessers(int pageNum, int pageSize, DqInterviewPostProcesser dqInterviewPostProcesser);

    Integer selectDqInterviewByType(Long typeId);

    Integer selectDqInterviewByMoney(int startMoney, int overMoney);

    List<String> selectDqInterviewAddress();

    Integer selectDqInterviewByAddress(String s);
}
